package com.ysy.logistics.service.sale.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ysy.common.resp.ResultData;
import com.ysy.logistics.entities.sale.Customer;
import com.ysy.logistics.mapper.sale.CustomerMapper;
import com.ysy.logistics.service.sale.CustomerService;
import com.ysy.logistics.util.PageInfo;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * @ClassDescription:
 * @Author:姚斯羽
 * @Create:2025/4/7 22:00
 **/
@Service
public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> implements CustomerService {

    @Resource
    private CustomerMapper customerMapper;

    @Override
    public Page<Customer> listByPage(PageInfo<Customer> pageInfo) {
        return  customerMapper.listByPage(pageInfo.getPage(), pageInfo.getCriteria());
    }
}
